import 'package:base_flutter/base_flutter.dart';

import 'net/HttpUtil.dart';
import 'net/api/http_api.dart';

UrlType type = UrlType.RELEASE;
 var urlencodedHeader =
Options(contentType: Headers.formUrlEncodedContentType);

 bool useLocalUrl = false;
void initUrl(){
  if(BuildConfig.isDebug){
    HttpApi.baseUrl = "http://saastest.yytong.com/ophApi/";
  }else{
  }
  HttpUtil.internal(baseUrl: HttpApi.baseUrl);

}

enum UrlType{
  ///智慧养老院测试服
  BETA,
  ///智慧养老院正式服
  RELEASE,
  ///温州洞头
  WENZHOU_DONGTOU,
  ///杭州建德
  HANGZHOU_JIANDE,
  ///杭州钱塘
  HANGZHOU_QIANTANG,
  ///金华武义
  JINHUA_WUYI,
  ///金华永康
  JINHUA_YONGKANG,
  ///丽水怡福家园
  YIFUJIAYUAN,
  ///绿城金华颐养中心
  JINHUA_YIYANGZHONGXIN,
  ///绿城常山颐养中心
  CHANGSHAN_YIYANGZHONGXIN,
  ///宁波市福利院，
  /// 宁波市南山老年疗养院
  NINGBO_FULIYUAN,
  ///衢州开化
  QUZHOU_KAIHUA,
  ///温州泰顺
  WENZHOU_TAISHUN,
  ///温州永嘉
  WENZHOU_YONGJIA,
  ///萧山湘湖
  XIAOSHAN_XIANGHU,
  ///台州黄岩
  TAIZHOU_HUANGYAN,
  ///杭州市第二社会福利院
  HANGZHOU_DIERFULIYUAN,
  ///西湖福利中心
  HANGZHOU_XIHUFULIZHONGX,
  ///宁波江北
  NINGBO_JIANGBEI,
  ///椒江福利中心
  JIAOJIANG_FULIZHONGXIN,
  ///德清养老院
  DEQING_YANGLAOYUAN,
  ///长兴
  CHANGXING,
  ///桐乡-梧桐护理院
  TONGXIANG_WUTONG,
  ///台州椒江
  TAIZHOU_JIAOJIANG,
  ///新昌-颐和
  XINCHANG_YIHE,
  ///本地
  LOCAL

}